WP_Defender\Component\IP\Antibot_Global_Firewall B

Total Complexity 97
Dependencies 8
Dependents 9
Total lines 687
Lines of code 320
Logical lines of code 185
Comment lines 207
Methods 33
Properties 5

Methods 33

Method Rating Maintainability Complexity Lines of code
download_blocklist()
A
47 10 34
toggle_on_hosting()
A
50 9 29
switch_mode()
S
49 6 33
read_file_generator()
S
57 6 17
switch_managed_by()
S
63 6 11
get_cached_blocklisted_ips()
S
53 5 21
managed_by_hosting_action()
S
57 4 19
download_and_store_blocklist()
S
60 4 15
is_displayed()
S
64 4 11
managed_by_plugin_action()
S
57 3 17
maybe_download()
S
63 4 10
is_active_via_plugin()
S
78 3 3
store_blocklist()
S
61 2 12
set_managed_by()
S
67 2 8
get_managed_by_label()
S
72 2 5
get_managed_by()
S
75 2 4
get_default_managed_by()
S
79 2 3
frontend_is_enabled()
S
73 2 5
log_ip_message()
S
68 2 7
is_active()
S
79 2 3
frontend_mode()
S
73 2 5
get_hosting_mode()
S
75 2 4
is_ip_blocked()
S
74 2 4
get_blocklisted_ip_count()
S
71 2 6
confirm_toggle_on_hosting()
S
77 1 4
get_mode()
S
82 1 3
__construct()
S
68 1 7
is_enabled()
S
75 1 4
get_last_sync()
S
79 1 3
get_button_text()
S
79 1 3
delete_blocklist()
S
77 1 4
hosting_is_enabled()
S
79 1 3
set_last_sync()
S
79 1 3